package com.edfu.core.commons.persistence.api;

import java.util.List;

import com.edfu.core.commons.persistence.entity.RatingEntity;
import com.edfu.core.identitymgt.persistence.entity.UserEntity;

public interface IRatingPersistence {

	public RatingEntity addRating(RatingEntity ratingEntity);

	public double getMeanRating(long objectId, String objectType);

	public long getRatingCount(long objectId, String objectType);

	public List<RatingEntity> getRatings(long objectId, String objectType);

	public RatingEntity getUserRating(UserEntity userEntity,
			long objectId, String string);

}
